export class ObjectCopier {
    static Copy<T>(s: any, d: T, isDeep?: boolean): T {
        if (!s) return null;
        d = JSON.parse(JSON.stringify(s));
        return d;
    }

    static EntityCopy<T>(s: any, d: T): T {
        if (!s) return null;
        let toString = d.toString;
        d = JSON.parse(JSON.stringify(s));
        d.toString = toString;
        return d;
    }
}